function getDateDetail(date){
	var d = new Date(parseInt(date));
 	var year = d.getFullYear();
 	var month = d.getMonth()+1;
 	var day = d.getDate();
 	var hour  = d.getHours();
 	var minute = d.getMinutes();
 	
 	var dNow = new Date();
 	var yearNow = dNow.getFullYear();
 	var monthNow = dNow.getMonth()+1;
 	var dayNow = dNow.getDate();
 	var hourNow  = dNow.getHours();
 	var minuteNow = dNow.getMinutes();
 	if(year==yearNow){
 		if(month==monthNow){
 			if(day==dayNow){
 				if(hour==hourNow){
 					return (minuteNow-minute)+"分钟前";
 				}else{
 					return (hourNow-hour)+"小时前";
 				}
 			}else{
 				if(dayNow-day<=3){
 					return (dayNow-day)+"天前";
 				}
 			}
 		}
 	}
 	return year+"-"+month+"-"+day;
}

function getDate(date){
	var d = new Date(date);
	return d.getFullYear()+"-"+(d.getMonth()+1)+"-"+d.getDate()+" "+d.getHours()+":"+d.getMinutes();
	
	
}

/*js对于后台返回long（毫秒）时间的转化处理 */
function getDateUsal(date){
	console.log(date);
	var d = new Date(parseInt(date));
	var year = d.getFullYear();
	var month = d.getMonth()+1;
	var day = d.getDate();
	console.log(year+"-"+month+"-"+day);
	return year+"-"+month+"-"+day;
}